package com.cf.model;

import com.cf.cache.ZCache;
import com.cf.crud.service.AbsBaseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * boot-cache-TestService
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/17 下午 12:23
 */
@Service
public class TestService extends AbsBaseService<Test, TestMapper> {
    @Override
    public Class getTargetClass() {
        return Test.class;
    }


    @ZCache(key = "'haha'")
    public List<Test> haha() {
        return this.selectAll();
    }
}
